package com.featherlike.feather.generator.entity;

import lombok.Data;

/**
 * 列
 */
@Data
public class Column {
    /**名称**/
    private String name;
    /**类型**/
    private String type;
    /**长度**/
    private String length;
    /**精度**/
    private String precision;
    /**非空**/
    private String notnull;
    /**主键**/
    private String pk;
    /**注释**/
    private String comment;
    /**列表页**/
    private String listPage;
    /**查询页**/
    private String queryPage;
    /**详情页**/
    private String modifyPage;
    /**作为链接**/
    private String asLink;
    /**字典**/
    private String dictType;

    public Column(String name, String type, String length, String precision,
                  String notnull, String pk, String comment, String listPage,
                  String queryPage, String modifyPage, String asLink, String dictType) {
        this.name = name;
        this.type = type;
        this.length = length;
        this.precision = precision;
        this.notnull = notnull;
        this.pk = pk;
        this.comment = comment;
        this.listPage = listPage;
        this.queryPage = queryPage;
        this.modifyPage = modifyPage;
        this.asLink = asLink;
        this.dictType = dictType;
    }

}
